cmake_minimum_required(VERSION 2.8)

# Project defines
project(ALM3GPS)
SET(VESRION_MAJOR "0")
SET(VESRION_MINOR "1")
SET(VESRION_PATCH "0")
SET(VERSION "$(VESRION_MAJOR).$(VESRION_MINOR).$(VESRION_PATCH)")
 	
## Compiler flags
if(CMAKE_COMPILER_IS_GNUCXX)
    set(CMAKE_CXX_FLAGS "-g -O2 -Wall")            ## Optimize
    set(CMAKE_EXE_LINKER_FLAGS "-s -lm")  ## Strip binary
endif()

#Subdirectory
#add_subdirectory(${PROJECT_SOURCE_DIR}/drivers)

# Add executable called "helloDemo" that is built from the source files 
# "demo.cxx" and "demo_b.cxx". The extensions are automatically found. 
add_executable (alm3gps alm3gps.c) 

# Link the executable to the Hello library. 
target_link_libraries (alm3gps m) 

# Messages
MESSAGE( STATUS "CMAKE_BINARY_DIR:         " ${CMAKE_BINARY_DIR} )
MESSAGE( STATUS "INSTALL_CMAKE_DIR:        " ${INSTALL_CMAKE_DIR} )
MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH:   " ${EXECUTABLE_OUTPUT_PATH} )
MESSAGE( STATUS "PROJECT_BINARY_DIR:       " ${PROJECT_BINARY_DIR} )
MESSAGE( STATUS "PROJECT_SOURCE_DIR:       " ${PROJECT_SOURCE_DIR} )


